import request from '@/utils/request'
import qs from 'qs'

// 动态
export function condition(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/tidings/index',
    method: 'get',
    params: data
  })
}
export function deleteList(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/tidings/del',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function add(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/tidings/add',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function deleteAll(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/tidings/batchDel',
    method: 'post',
    data: qs.stringify(data)
  })
}
export function edit(params) {
  const data = {
    ...params
  }
  return request({
    url: '/merchant/tidings/edit',
    method: 'post',
    data: qs.stringify(data)
  })
}
